﻿(function () {
    "use strict";

    var team = new WinJS.Binding.List();

    WinJS.UI.Pages.define("/pages/project/teamProject/teamProject.html", {
        ready: function (element, options) {
            /*element.querySelector('#ListView').addEventListener('iteminvoked', function (e) {
                //WinJS.Navigation.navigate('/pages/calendar/weekCalendar/weekCalendar.html', { item: e.detail.itemPromise._value.data });
            });*/
            initPage();

            document.querySelector("#addButton").addEventListener("click", function () {
                
                document.querySelector("#panel").className = "panelOpened";
            });

            document.querySelector("#closePanel").addEventListener("click", function() {
                document.querySelector("#panel").className = "panelClosed";
            });
        }
    });


    var initPage = function(){
        team.splice(0, team.length);
        getElements();
    }
    

    var getElements = function () {
        var i = 0;
        
    }

    var publicMembres = {
        team: team
    };


    WinJS.Namespace.define("teamProject", publicMembres);

})();
